<html>
<head>
    <script>
    function showContents(aFileId) 
    {
        //var jq = jQuery.noConflict();
        alert("showContents: " + aFileId);
        jQuery(function() 
        {
            alert("before jq.post: " + aFileId);
            jQuery.post("/ocean/showcontents.ocean",
            {  
                fileId:  aFileId,
            },
            function(data)
            {
                alert("data jq.post: " + aFileId + "< data >" + data + "<");
               // data contains the result
               // Assign result to the sum id
               jQuery("#sum").replaceWith('<span id="sum">'+ "fileId >" + aFileId + "< >" + data + '</span>');
            });
        });
    }    
    </script>
        
</head>
<body>
    <span id="sum">(Result will be shown here)</span>
</body>
</html>